//
//  HomeBtn.m
//  DSXieGuan
//
//  Created by 郑开宏 on 16/4/5.
//  Copyright © 2016年 郑开宏. All rights reserved.
//

#import "HomeBtn.h"

@implementation HomeBtn

- (void)layoutSubviews{
    [super layoutSubviews];
    self.titleLabel.textAlignment = NSTextAlignmentLeft;
    [self.titleLabel setFont:[UIFont systemFontOfSize:14]];
    self.imageView.frame = CGRectMake(0, (self.height - 20) / 2, 20, 20);
    self.titleLabel.frame = CGRectMake(30, 0, self.width - 30, self.height);
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    self.imageView.clipsToBounds = YES;
}

- (void)setHighlighted:(BOOL)highlighted{
    
}

@end
